package com.fa.wisdom.adapter;

import android.graphics.Color;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fa.wisdom.R;
import com.fa.wisdom.model.HomeGroupEntity;

import java.util.List;

public class HomeMenuAdapter extends BaseQuickAdapter<HomeGroupEntity, BaseViewHolder> {
    public HomeMenuAdapter( List<HomeGroupEntity> mList) {
        super(R.layout.item_home_title, mList);
    }
    @Override
    protected void convert(BaseViewHolder helper, HomeGroupEntity item) {
        TextView title=helper.getView(R.id.tv_title);
        title.setText(item.getTitle());
        if (item.isSelect()){
            title.setTextColor(Color.parseColor("#000000"));
        }else {
            title.setTextColor(Color.parseColor("#A9A9A9"));
        }
    }
}
